package com.itheima;

import com.fix.config.UserConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@ComponentScan(basePackages = "com.fix")
@Import(UserConfig.class)
public class SpringBoot05Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringBoot05Application.class, args);
        Object user = run.getBean("user");
        System.out.println(user);

    }

}
